package com.zw.admin.server.model;

import org.springframework.beans.factory.annotation.Autowired;

import com.zw.admin.server.component.RegionComponent;

public class PSupplier extends BaseEntity<Long> {
	
	
	private Integer supplierNo;
	private String supplierName;
	private Integer regionCode;
	private String address;
	private String contacts;
	private String tel;
	private Integer supType;
	
	private String regionTitle; //只读地区
	
	public Integer getSupplierNo() {
		return supplierNo;
	}
	public void setSupplierNo(Integer supplierNo) {
		this.supplierNo = supplierNo;
	}
	public String getSupplierName() {
		return supplierName;
	}
	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}
	public Integer getRegionCode() {
		return regionCode;
	}
	public void setRegionCode(Integer regionCode) {
		this.regionCode = regionCode;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getContacts() {
		return contacts;
	}
	public void setContacts(String contacts) {
		this.contacts = contacts;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public Integer getSupType() {
		return supType;
	}
	public void setSupType(Integer supType) {
		this.supType = supType;
	}

	/**
	 * 只读地区全称
	 * @return
	 * @author xiaoqun.liu
	 * @date 2021年2月20日 下午3:49:59
	 */
	public String getRegionTitle() {
//		if(this.regionTitle==null && this.regionCode!=null && this.regionCode!=0 ) {
//			this.regionTitle = regionComponent.getRegionTitle(this.regionCode);
//		}
		return this.regionTitle;
	}
	public void setRegionTitle(String regionTitle) {
		this.regionTitle = regionTitle;
	}
	
	
}
